package com.lichuang.fruitvarietysm.goods.service.impl;

import com.lichuang.fruitvarietysm.goods.entity.GoodsCollection;
import com.lichuang.fruitvarietysm.goods.mapper.GoodsCollectionMapper;
import com.lichuang.fruitvarietysm.goods.service.IGoodsCollectionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author shuaihang
 * @since 2019-06-05
 */
@Service
public class GoodsCollectionServiceImpl extends ServiceImpl<GoodsCollectionMapper, GoodsCollection> implements IGoodsCollectionService {

    @Autowired
    GoodsCollectionMapper collectionMapper;

    @Override
    public int sCountCollection(Integer goods_id) {
        return collectionMapper.sCountCollection(goods_id);
    }
}
